CopyTo Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Copies all the items in the collection into an array. Implemented by using the enumerator returned from GetEnumerator to get all the items and copy them to the provided array.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public virtual void CopyTo(
	T[] array,
	int arrayIndex
)
Visual Basic (Declaration)
Public Overridable Sub CopyTo ( _
	array As T(), _
	arrayIndex As Integer _
)
Visual C++
public:
virtual void CopyTo (
	array<T>^ array, 
	int arrayIndex
)

Parameters

array
array<T>[]()
Array to copy to.
arrayIndex
Int32
Starting index in array to copy to.

See Also